﻿using System.IO;
using ClosedXML.Excel;
using Haimen.Excel;

namespace HmLab;

internal class MergeExcelUtils {

  public FileStream OpenRead(string path) => _util.OpenRead(path);

  public int LastRowNum(IXLWorksheet sheet) {
    return sheet.LastRowUsed(XLCellsUsedOptions.All).RowNumber();
  }

  readonly ExcelFileUtils _util = new();
}
